#include <bits/stdc++.h>
using namespace std;


class Date{

private: 
	static int month[13];
	int Y = 1970, M = 1, D = 1;

public:
	
	Date(int y, int m, int d){
		set(y, m, d);
	}
	
	bool set(int y, int m, int d){
        if(isValid(y, m, d)){
            Y = y;
            M = m;
            D = d;
            return true;
        }
        return false;
	}

	bool isLeapYear(int y) {
		return (y % 4 == 0 && y % 100 != 0) || (y % 400 == 0);
	}
	
	int countDay(){
		int tot = 0;
		for(int i = 1; i < M; ++i){
			tot += month[i];
			if(i == 2){
				tot += isLeapYear(Y);
			}
		}
		return tot + D;
	}

    bool isValid(int y, int m, int d) {
        if(y < 0 || m <= 0 || m > 12 || d <= 0){
			return false;
		}
		
        int leap = 0;
        if(m == 2){
            leap = isLeapYear(y);
        }
		
        return leap + month[m] >= d;
    }
	
	void print() {
		printf("%d / %d / %d\n", Y, M, D);
		printf("第%d天", countDay());
	}
	

};

int Date::month[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

void solve(){
	
	Date date(2020, 2, 28);
	date.print();
	
}

int main(){

	solve();
    return 0;
}